<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/config/c.tld" prefix="c"%>
<%@ taglib prefix="fn" uri="/WEB-INF/config/fn.tld"%>
<%@ taglib prefix="fmt" uri="/WEB-INF/config/fmt.tld"%>

<!DOCTYPE HTML>
<html>
  <head>
    <title>底部信息设置</title>
  </head>
  <body>
		<ul class="breadcrumb">
			<li>
				<a href="index.html">首页</a>
				<i class="icon-angle-right"></i>
			</li>
			<li>
				<a href="brandActivity/manage/initUpdate.html">底部信息设置</a>
				<i class="icon-angle-right"></i>
			</li>
			<li>
				<a href="#">更新信息</a>
			</li>
		</ul>
		<div class="row-fluid ">
			<div class="box span12">
				<div class="box-header" data-original-title>
					<h2><i class="halflings-icon white edit"></i><span class="break"></span>请填写"底部信息"的信息</h2>
					<div class="box-icon">
						<a href="#" class="btn-setting"><i class="halflings-icon white wrench"></i></a>
						<a href="#" class="btn-minimize"><i class="halflings-icon white chevron-up"></i></a>
						<a href="#" class="btn-close"><i class="halflings-icon white remove"></i></a>
					</div>
				</div>
				<div class="box-content">
					<c:if test="${message!=''}">
						<div class="alert alert-success">
							<button type="button" class="close" data-dismiss="alert">×</button>
							<strong>提示!</strong> ${message}.
						</div>
					</c:if>
					<form class="form-horizontal" action="bottom/manage/update.html" method="post" enctype="multipart/form-data">
						<input type="hidden" name="bottomId" value="${bottom.id }">
						<fieldset>
							<div class="control-group hidden-phone">
								<label class="control-label" for="textarea2">网站名称</label>
								<div class="controls">
								    <input type="text" class="span6 typeahead" id="systemName" name="systemName" value="${bottom.systemName}">
								</div>
							</div>
							<div class="control-group hidden-phone">
								<label class="control-label" for="textarea2">版权名称</label>
								<div class="controls">
									<input type="text" class="span6 typeahead" id="banquan" name="banquan" value="${bottom.banquan}">
								</div>
							</div>
							<div class="control-group hidden-phone">
								<label class="control-label" for="textarea2">技术支持</label>
								<div class="controls">
									<input type="text" class="span6 typeahead" id="support" name="support" value="${bottom.support}">
								</div>
							</div>
							<div class="control-group hidden-phone">
								<label class="control-label" for="textarea2">联系电话</label>
								<div class="controls">
									<input type="text" class="span6 typeahead" id="tel" name="tel" value="${bottom.tel}">
								</div>
							</div>
							<div class="control-group hidden-phone">
								<label class="control-label" for="textarea2">通讯地址</label>
								<div class="controls">
									<input type="text" class="span6 typeahead" id="address" name="address" value="${bottom.address}">
								</div>
							</div>
							<div class="form-actions">
								<button type="submit" class="btn btn-primary">保存信息</button>
							</div>
						</fieldset>
					</form>
				</div>
			</div><!--/span-->
		</div><!--/row-->
		<script type="text/javascript" src="ueditor/ueditor.config.js"></script>
 		<script type="text/javascript" src="ueditor/ueditor.all.js"></script>
		<script type="text/javascript">
		  var cnContent = UE.getEditor('cnContent',{
		     initialFrameWidth :740,//设置编辑器宽度
		     initialFrameHeight:350,//设置编辑器高度
		     scaleEnabled:true
		  });
		  var enContent = UE.getEditor('enContent',{
		     initialFrameWidth :740,//设置编辑器宽度
		     initialFrameHeight:350,//设置编辑器高度
		     scaleEnabled:true
		  });
		  var rTWContent = UE.getEditor('rTWContent',{
		     initialFrameWidth :740,//设置编辑器宽度
		     initialFrameHeight:350,//设置编辑器高度
		     scaleEnabled:true
		  });
	    </script>
	    <script>
		$("#fileInput").change(function () {
			var objUrl = getObjectURL(this.files[0]);
			console.log("objUrl = " + objUrl);
			if (objUrl) {
				$("#fileInputBig").attr("src", objUrl);
			}
		});
		//建立一个可存取到该file的url
		function getObjectURL(file) {
			var url = null;
			if (window.createObjectURL != undefined) { // basic
				url = window.createObjectURL(file);
			} else if (window.URL != undefined) { // mozilla(firefox)
				url = window.URL.createObjectURL(file);
			} else if (window.webkitURL != undefined) { // webkit or chrome
				url = window.webkitURL.createObjectURL(file);
			}
	
			return url;
		}
	</script>
  </body>
</html>
